package com.addplus.townmall.server.api.model.town;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;
import com.addplus.townmall.server.api.model.base.BaseRestModel;
import com.fasterxml.jackson.annotation.JsonFormat;
//import com.fasterxml.jackson.databind.annotation.JsonSerialize;
//import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 商城会员卡购买记录详细表
 * </p>
 *
 * @author zhangjiehang
 * @since 2018-11-05
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
public class DiscountCardMemberRecord extends BaseRestModel {

    private static final long serialVersionUID = 1L;

    /**
     * 关联用户主键id
     */
    private Integer memberId;

    /**
     * 关联会员卡主键id
     */
    private Integer discountCardId;

    /**
     * 会员卡名称
     */
    private String discountCardName;

    /**
     * 关联订单主键id
     */
    private Integer orderId;

    /**
     * 购买时长
     */
    private Integer duration;

    /**
     * 参与商品享受优惠额度(存0.98，代表9.8折)
     */
    private BigDecimal offerAmount;

    /**
     * 成交金额
     */
    private BigDecimal buyPrice;

    /**
     * 会员卡开始时间
     */
    private LocalDate startDate;

    /**
     * 会员卡结束时间
     */
    private LocalDate endDate;

    /**
     * 是否删除(0:否 1:是)
     */
    private Integer isDeleted;


}
